use std::env;
mod lesson1;
mod lesson2;
mod lesson3;
fn main() {
    let args: Vec<String> = env::args().collect();
    let lesson_index = &args[1].parse::<i32>().unwrap();
    match lesson_index {
        1 => lesson1::run(),
        2 => lesson2::run(),
        3 => lesson3::run(),
        _ => panic!("Invalid lesson index"),
    }
    println!("{:?}", lesson_index);
}
